import { ErrorPage } from '@/views/ErrorPage'
import { Route } from '.'

import PanelView from '@/views/Panel'
import {
  IconHome,
  IconPhoneStroke,
  IconPhone,
  IconUser,
  IconCamera,
  IconComponentPlaceholderStroked,
  IconSettingStroked,
  IconExit,
} from '@douyinfe/semi-icons'

export const routes: Route[] = [
  {
    id: 'panel-brush',
    path: '',
    name: 'Brush',
    Icon: <IconPhone />,
    Component: PanelView,
    children: [
      {
        id: 'brush-qualcomm',
        name: 'Qualcomm',
        path: '',
        Component: lazy(() => import('@/views/Panel/Brush/Qualcomm')),
      },
      {
        id: 'brush-mediatek',
        name: 'Mediatek',
        path: 'mediatek',
        Component: lazy(() => import('@/views/Panel/Brush/Mediatek')),
      },
      // {
      //   id: 'brush-sprd',
      //   name: 'Sprd',
      //   path: 'sprd',
      //   Component: lazy(() => import('@/views/Panel/Brush/Sprd')),
      // },
      // {
      //   name: 'Samsung',
      //   id: 'brush-samsung',
      //   path: 'samsung',
      //   // Component: lazy(() => import('@/views/Panel/Brush/Samsung')),
      // },
      // {
      //   name: 'Xiaomi',
      //   id: 'brush-xiaomi',
      //   path: 'xiaomi',
      //   // Component: lazy(() => import('@/views/Panel/Brush/Xiaomi')),
      // },
      // {
      //   name: 'HuaWei',
      //   id: 'brush-huawei',
      //   path: 'huawei',
      //   // Component: lazy(() => import('@/views/Panel/Brush/Huawei')),
      // },
      // {
      //   name: 'Motorola',
      //   id: 'brush-motorola',
      //   path: 'motorola',
      //   // Component: lazy(() => import('@/views/Panel/Brush/Motorola')),
      // },
      // {
      //   name: 'eMMC ISP',
      //   id: 'brush-emmc',
      //   path: 'emmc',
      //   // Component: lazy(() => import('@/views/Panel/Brush/Emmc')),
      // },
      // {
      //   name: 'ROOT',
      //   id: 'brush-root',
      //   path: 'root',
      //   // Component: lazy(() => import('@/views/Panel/Brush/Root')),
      // },
      // {
      //   name: 'Sony | Lumia',
      //   id: 'brush-sony',
      //   path: 'sony',
      //   // Component: lazy(() => import('@/views/Panel/Brush/Sony')),
      // },

      // {
      //   name: 'Android',
      //   id: 'brush-android',
      //   path: 'android',
      //   // Component: lazy(() => import('@/views/Panel/Brush/Android')),
      // },
      // {
      //   name: 'Firmware EXT',
      //   id: 'brush-firmware',
      //   path: 'firmware',
      // },
      // {
      //   name: 'Test Point',
      //   id: 'brush-testpoint',
      //   path: 'testpoint',
      // },
      {
        path: '*',
        element: <ErrorPage />,
      },
    ],
  },
  {
    id: 'panel-personal',
    Component: lazy(() => import('@/views/Panel/Personal')),
    Icon: <IconUser />,
    name: 'Personal',
    path: 'personal',
  },
  {
    id: 'panel-drive',
    Component: lazy(() => import('@/views/Panel/Drive')),
    Icon: <IconComponentPlaceholderStroked />,
    name: 'Drive',
    path: 'drive',
  },
  {
    id: 'panel-capture',
    Icon: <IconCamera />,
    name: 'Capture',
    path: 'capture',
  },
  {
    id: 'panel-setting',
    Component: lazy(() => import('@/views/Panel/Setting')),
    Icon: <IconSettingStroked />,
    name: 'Setting',
    path: 'setting',
  },
  {
    id: 'panel-logout',
    Icon: <IconExit />,
    name: 'Logout',
    path: 'logout',
  },
]
